﻿using System;
using System.Collections.Generic;

namespace Stee.CAP8.MessageBus.Sagas.Messages.Messages
{

    /// <summary>
    /// 消息数据
    /// </summary>
    /// <seealso cref="MQ.IMQMessageBase" />
    [Serializable]
    public class TransportMessage : ITransportMessage
    {
        private readonly IDictionary<string, string> data = new Dictionary<string, string>();
        public string Action { get; set; }
        public string Body { get; set; }
        public string Tag { get; set; }
        public IDictionary<string, string> Data => data;
        public DateTime CreateTime { get; set; }

        public TransportMessage()
        {
            CreateTime = DateTime.Now;
        }
    }

    /// <summary>
    /// 消息事件处理器
    /// </summary>

}
